package com.parktech.sun.domain.model.industryinfo;

import com.parktech.sun.domain.model.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * User: Think
 * Date: 11-1-13
 * Time: 下午8:48
 */
@Entity
public class IndustryInfoCategory extends BaseEntity {

    private Long id = new Long("-1");

    @NotNull
    @Size(min=1, max = 20)
    private String name;

    private Integer orderCode;

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(Integer orderCode) {
        this.orderCode = orderCode;
    }

}
